package io;

import java.io.*;
import java.util.function.Predicate;

public class OosDemo {
    public static void main(String[] args) throws IOException {
        String name = "翻出阿基诺其";
        int age = 18;
        String gender = "无性别";
        String[] otherInfo = {"外国","买米饭","米饭仙人","挑食","晕米"};
        /*Person person = new Person(name, age, gender, otherInfo);

        FileOutputStream fos = new FileOutputStream("person.obj");
        ObjectOutputStream oos = new ObjectOutputStream(fos);
        oos.writeObject(person);
        System.out.println("写出完毕");
        oos.close();*/

        /*Person person = new Person(name, age, gender, otherInfo);
        FileOutputStream fos = new FileOutputStream("aa.obj");
        ObjectOutputStream oos = new ObjectOutputStream(fos);
        oos.writeObject(person);
        oos.close();*/

        /*Person person = new Person(name, age, gender, otherInfo);
        FileOutputStream file = new FileOutputStream("aaaa.a");
        ObjectOutputStream out = new ObjectOutputStream(file);
        out.writeObject(person);
        out.close*/

        /*Person person = new Person(name, age, gender, otherInfo);
        FileOutputStream fos = new FileOutputStream("aa.aa");
        ObjectOutputStream oos = new ObjectOutputStream(fos);
        oos.writeObject(person);
        oos.close*/






    }
}
